package com.gylang.print.pdf.test.pdf;

import com.gylang.print.pdf.test.TestConstant;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;

import java.io.IOException;

/**
 * @author gylang
 * data 2021/6/3
 */
public class newPage {

	public static void main(String[] args) {
		try (PDDocument pdDocument = new PDDocument()){
			PDPage page = new PDPage();
			pdDocument.addPage(page);
			pdDocument.save(TestConstant.PDF_BASE + "page.pdf");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
